Now that all code conforms with the rule, we can enforce it to make
sure we stick to it with new code.
Relax the rule for destructuring, so we don't have to jump through
hoops to avoid "mixed" assignments.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3931>
afterColon: true,
}],
'prefer-arrow-callback': 'error',
+ 'prefer-const': ['error', {
+ destructuring: 'all',
+ }],
'jsdoc/require-param-description': 'off',
'jsdoc/require-jsdoc': ['error', {
exemptEmptyFunctions: true,